package edu.cmu.ece.ds.droidchat.message;

import java.io.Serializable;

/**
 * An object that represent the registration request from 
 *  the DroidChat user to the DroidChat server 
 *  
 *  a subclass of "DroidChatMessage"
 */
public class ClientRegisterMessage extends DroidChatMessage implements Serializable{
	
	private String username;
	private String password;
	
	public ClientRegisterMessage(String username, String password) {
		super(DroidChatMessage.CLIENT_REGISTER);
		this.username = username;
		this.password = password;
	}

	public String getUsername() {		return username;	}
	public String getPassword() {		return password;	}
	
	public String toString(){
		return "ClientRegisterMessage: username=" + this.username + " password=" + this.password;
	}
}
